package com.newtouch.krd_app.http.api;

import androidx.annotation.NonNull;

import com.google.gson.annotations.SerializedName;
import com.hjq.http.config.IRequestApi;
import com.newtouch.krd_app.util.BaseUrlUtil;
import com.newtouch.krd_app.util.DeviceUtil;

import java.util.List;
/**
 *    author : TQ
 *    time   : 2023/02/13
 *    desc   : 请求处理类
 */
public class TerminalApi implements IRequestApi {
    @NonNull
    @Override
    public String getApi() {
        return "/front/materialTerminal/viewMaterialTerminal/"+ BaseUrlUtil.getInstance().getMac();
    }

    public final static class Bean {

        @com.google.gson.annotations.SerializedName("materialId")
        private Integer materialId;
        @com.google.gson.annotations.SerializedName("terminalId")
        private Integer terminalId;
        @com.google.gson.annotations.SerializedName("fileId")
        private String fileId;
        @com.google.gson.annotations.SerializedName("files")
        private java.util.List<FilesDTO> files;

        public Integer getMaterialId() {
            return materialId;
        }

        public void setMaterialId(Integer materialId) {
            this.materialId = materialId;
        }

        public Integer getTerminalId() {
            return terminalId;
        }

        public void setTerminalId(Integer terminalId) {
            this.terminalId = terminalId;
        }

        public String getFileId() {
            return fileId;
        }

        public void setFileId(String fileId) {
            this.fileId = fileId;
        }

        public List<FilesDTO> getFiles() {
            return files;
        }

        public void setFiles(List<FilesDTO> files) {
            this.files = files;
        }

        public class FilesDTO {

            @SerializedName("createBy")
            private String createBy;
            @SerializedName("createTime")
            private String createTime;
            @SerializedName("params")
            private Object params;
            @SerializedName("fileId")
            private String fileId;
            @SerializedName("fileName")
            private String fileName;
            @SerializedName("fileType")
            private String fileType;
            @SerializedName("filePath")
            private String filePath;
            @SerializedName("fileSize")
            private Integer fileSize;
            @SerializedName("delFlag")
            private String delFlag;
            @SerializedName("picFiles")
            private List<PicFilesDTO> picFiles;
            @SerializedName("fileDicPath")
            private String fileDicPath;

            public String getFileDicPath() {
                return fileDicPath;
            }

            public void setFileDicPath(String fileDicPath) {
                this.fileDicPath = fileDicPath;
            }

            public String getCreateBy() {
                return createBy;
            }

            public void setCreateBy(String createBy) {
                this.createBy = createBy;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public Object getParams() {
                return params;
            }

            public void setParams(Object params) {
                this.params = params;
            }

            public String getFileId() {
                return fileId;
            }

            public void setFileId(String fileId) {
                this.fileId = fileId;
            }

            public String getFileName() {
                return fileName;
            }

            public void setFileName(String fileName) {
                this.fileName = fileName;
            }

            public String getFileType() {
                return fileType;
            }

            public void setFileType(String fileType) {
                this.fileType = fileType;
            }

            public String getFilePath() {
                return filePath;
            }

            public void setFilePath(String filePath) {
                this.filePath = filePath;
            }

            public Integer getFileSize() {
                return fileSize;
            }

            public void setFileSize(Integer fileSize) {
                this.fileSize = fileSize;
            }

            public String getDelFlag() {
                return delFlag;
            }

            public void setDelFlag(String delFlag) {
                this.delFlag = delFlag;
            }

            public List<PicFilesDTO> getPicFiles() {
                return picFiles;
            }

            public void setPicFiles(List<PicFilesDTO> picFiles) {
                this.picFiles = picFiles;
            }

            public  class PicFilesDTO {
                @SerializedName("createBy")
                private String createBy;
                @SerializedName("createTime")
                private String createTime;
                @SerializedName("remark")
                private String remark;
                @SerializedName("params")
                private Object params;
                @SerializedName("fileId")
                private String fileId;
                @SerializedName("fileName")
                private String fileName;
                @SerializedName("fileType")
                private String fileType;
                @SerializedName("filePath")
                private String filePath;
                @SerializedName("fileSize")
                private Integer fileSize;
                @SerializedName("delFlag")
                private String delFlag;
                @SerializedName("height")
                private Integer height;
                @SerializedName("width")
                private Integer width;

                public String getCreateBy() {
                    return createBy;
                }

                public void setCreateBy(String createBy) {
                    this.createBy = createBy;
                }

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public String getRemark() {
                    return remark;
                }

                public void setRemark(String remark) {
                    this.remark = remark;
                }

                public Object getParams() {
                    return params;
                }

                public void setParams(Object params) {
                    this.params = params;
                }

                public String getFileId() {
                    return fileId;
                }

                public void setFileId(String fileId) {
                    this.fileId = fileId;
                }

                public String getFileName() {
                    return fileName;
                }

                public void setFileName(String fileName) {
                    this.fileName = fileName;
                }

                public String getFileType() {
                    return fileType;
                }

                public void setFileType(String fileType) {
                    this.fileType = fileType;
                }

                public String getFilePath() {
                    return filePath;
                }

                public void setFilePath(String filePath) {
                    this.filePath = filePath;
                }

                public Integer getFileSize() {
                    return fileSize;
                }

                public void setFileSize(Integer fileSize) {
                    this.fileSize = fileSize;
                }

                public String getDelFlag() {
                    return delFlag;
                }

                public void setDelFlag(String delFlag) {
                    this.delFlag = delFlag;
                }

                public Integer getHeight() {
                    return height;
                }

                public void setHeight(Integer height) {
                    this.height = height;
                }

                public Integer getWidth() {
                    return width;
                }

                public void setWidth(Integer width) {
                    this.width = width;
                }
            }
        }
    }
}
